"""启动文件"""
from app import create_app
from config import BaseConfig

app = create_app()

@app.errorhandler(404)
def page_not_found(error):
    return 'This page does not exist', 404
 
if __name__ == '__main__':
    app.config.from_object(BaseConfig)
    print(app.url_map)
    app.run(host='0.0.0.0')